package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.EcologyPoolLinkTypeEnum;
import com.sc.nft.sup.AnemiaModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 生态池-生态熔炼积分-积分明细
 *
 * @TableName sc_ecology_pool_source_detail
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sc_ecology_pool_source_detail")
public class EcologyPoolSourceDetail extends AnemiaModel implements Serializable {
    /**
     * 数量
     */
    @TableField(value = "link_count")
    private BigDecimal linkCount;

    /**
     * 物质类型 1：积分
     */
    @TableField(value = "link_type")
    private EcologyPoolLinkTypeEnum linkType;

    /**
     * 日期
     */
    @TableField(value = "link_date")
    private Date linkDate;

    /**
     * daoId
     */
    @TableField(value = "dao_id")
    private Long daoId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 藏品id
     */
    @TableField(value = "collection_id")
    private Long collectionId;

    /**
     * 藏品名称
     */
    @TableField(value = "collection_name")
    private String collectionName;

    /**
     * 幂等键，唯一约束
     */
    @TableField(value = "pk_code")
    private String pkCode;

    @TableField(value = "released")
    private Boolean released;
}